from functools import reduce

def squaresum(prev, x):
    return prev + x * x
result = reduce(squaresum, range(1, 11))
print(result)